function remove(sid){
	$('#myModal').modal('show');
	$.post("../asset/remove_Structures.action",{"structures.sid":sid}, function(result) {
		if(result.msg=="succ"){
			$('#myModal').modal('hide');
			$("#alertinfo").html("构筑物信息删除成功。");
			$("#closewin").bind("click",function(){
				$("#closewin").unbind("click");
				$('#myinfo').modal('hide');
				window.location.reload();
			});
			$('#myinfo').modal('show');
		}else{
			$('#myModal').modal('hide');
			$("#alertinfo").html(result.msg);
			$('#myinfo').modal('show');
		}
	});
}
function conditionExport(){
	var zcbh=$("#zcbh").val();
	var sname=$("#sname").val();
	var mdept=$("#mdept").val();
	window.location.assign("../asset/exportExcel_Structures.action?structures.zcbh="+zcbh+"&structures.sname="+sname+"&structures.mdept="+mdept);
}
function allExport(){
	window.location.assign("../asset/exportExcel_Structures.action");
}
function conditionPrint(){
	var zcbh=$("#zcbh").val();
	var sname=$("#sname").val();
	var mdept=$("#mdept").val();
	$("#print_structures").attr("src","../asset/print_Structures.action?structures.zcbh="+zcbh+"&structures.sname="+sname+"&structures.mdept="+mdept);
}
function allPrint(){
	$("#print_structures").attr("src","../asset/print_Structures.action");
}